﻿using Autodesk.AutoCAD.DatabaseServices;
using CADTool.TestTool;
using System;
using System.Net.Mail;
using System.Windows.Forms;
namespace CADTool
{
    public partial class CADForm : Form
    {
        public CADForm()
        {
            InitializeComponent();
        }       
        private void CADForm_Activated(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Normal;
        }
        private void btnYXBG_Click(object sender, EventArgs e)
        {
            YanXianForm yanXianForm = new YanXianForm();
            yanXianForm.Show();
        }
        private void btnSCDK_Click(object sender, EventArgs e)
        {
            CADTool.SCDK();
            Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Window.Focus();
        }
        private void btnDXZL_Click(object sender, EventArgs e)
        {
            CADTool.DXZL();
        }
        private void btnDBBZ_Click(object sender, EventArgs e)
        {
            CADTool.DBBZ();
        }
        private void btnZDXG_Click(object sender, EventArgs e)
        {
            CADTool.ZDXGD();
        }
        private void btnSZQH_Click(object sender, EventArgs e)
        {
            CADTool.SZQH();
        }
        private void btnBWHZ_Click(object sender, EventArgs e)
        {
            CADTool.BWHZ();
        }
        private void btnGSMC_Click(object sender, EventArgs e)
        {
            CADTool.GSMC();
        }
        private void btnSZXJ_Click(object sender, EventArgs e)
        {
            CADTool.SZXJ();
        }
        private void btnOPenAllLayers_Click(object sender, EventArgs e)
        {
            CADTool.OpenAllLayers();
        }
        private void btnCloseAllLayers_Click(object sender, EventArgs e)
        {
            CADTool.CloseAllLayers();
        }
        private void btnCloseSelectedLayer_Click(object sender, EventArgs e)
        {
            CADTool.CloseSelectedLayer();
        }
        private void btnOnlySelectedLayer_Click(object sender, EventArgs e)
        {
            CADTool.OnlyShowSelectedLayer();
        }
        private void btnCopyToThisLayer_Click(object sender, EventArgs e)
        {
            CADTool.CopyToThisLayer();
        }
        private void btnMoveToThisLayer_Click(object sender, EventArgs e)
        {
            CADTool.MoveToThisLayer();
        }
        private void btnWBHB_Click(object sender, EventArgs e)
        {
            CADTool.WBHB();
        }
        private void btnHZMJ_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("MJHZ");
            CustomMethod.GetFocus();
        }
        private void btnSTHZ_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("STHZ");
            CustomMethod.GetFocus();
        }

        private void btnSTQZ_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("STQZ");
            CustomMethod.GetFocus();

        }
        private void btrZNQH_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("ZNQH");
            CustomMethod.GetFocus();
        }
        private void button5_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("ZXDQ");
            CustomMethod.GetFocus();
        }
        private void btnSJYS_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("SJYS");
            CustomMethod.GetFocus();
        }
        private void btnMtextToDBText_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("MtextToDBText");
            CustomMethod.GetFocus();
        }
        private void btnBZTZ_Click(object sender, EventArgs e)
        {
            CADTool.BZTZ();
            CustomMethod.GetFocus();
        }
        private void btnCJBZ_Click(object sender, EventArgs e)
        {
            CADTool.CJBZ();
            CustomMethod.GetFocus();
        }

        private void btnHFST_Click(object sender, EventArgs e)
        {
            CADTool.HFST();
        }

        private void btnWZHDQ_Click(object sender, EventArgs e)
        {
            CADTool.WZHDQ();
        }

        private void btnDSZTQ_Click(object sender, EventArgs e)
        {
            CADTool.DSZTQ();
            CustomMethod.GetFocus();
        }

        private void btnQXLJ_Click(object sender, EventArgs e)
        {
            CADTool.QXLJ();
            CustomMethod.GetFocus();
        }

        private void btnLJWZBJ_Click(object sender, EventArgs e)
        {
            CADTool.LJWZBJ();
            CustomMethod.GetFocus();
        }

        private void btnJCS_Click(object sender, EventArgs e)
        {
            CADTool.JCS();
            CustomMethod.GetFocus();
        }

        private void btnXGCM_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.XGCM();

        }

        private void btnLJCS_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            LanJieTest.LJCS();
        }

        private void QXLJCS_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            LanJieTest.QXLJCS();
        }

        private void btnSZQW_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.SZQW();
        }

        private void TPQPTZ_Click(object sender, EventArgs e)
        {
            CADTool.TPQPTZ();
            CustomMethod.GetFocus();
        }

        private void btnTXWLK_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.TXWLK();

        }

        private void btnSCSJD_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.SCSJD();
        }

        private void btnTJGXCD_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.TJGXCD();
        }

        private void btnTQZB_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CADTool.TQZB();
        }

        private void btnHZPL_Click(object sender, EventArgs e)
        {
            CADTool.HZPL();
            CustomMethod.GetFocus();
        }



        private void btnTSZB_Click(object sender, EventArgs e)
        {
            CADTool.TSZB();
            CustomMethod.GetFocus();
        }

        private void btnTQZBHH_Click(object sender, EventArgs e)
        {
            CADTool.TQZBHH();
            CustomMethod.GetFocus();
        }

        private void btnSCFW_Click(object sender, EventArgs e)
        {
            CADTool.SCFW();
            CustomMethod.GetFocus();
        }

        private void btnSCDYDD_Click(object sender, EventArgs e)
        {
            CADTool.SCDYDD();
            CustomMethod.GetFocus();
        }

        private void btnZSJD_Click(object sender, EventArgs e)
        {
            CADTool.ZSJD();
            CustomMethod.GetFocus();
        }

        private void btnJGTH_Click(object sender, EventArgs e)
        {
            CADTool.JGTH();
            CustomMethod.GetFocus();
        }
        private void btnZBBZ_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("YZBBZ");
            CustomMethod.GetFocus();
        }

        private void btnZWDQ_Click(object sender, EventArgs e)
        {
            CADTool.ZWDQC();
            CustomMethod.GetFocus();
        }

        private void btnJIGDTZL_Click(object sender, EventArgs e)
        {
            CustomMethod.SendCommand("JIGDTZL");
            CustomMethod.GetFocus();
        }

        private void btnZJBWH_Click(object sender, EventArgs e)
        {
            CADTool.ZJBWH();
            CustomMethod.GetFocus() ;
        }

        private void btnDQBCSJ_Click(object sender, EventArgs e)
        {
            CADTool.M1();
            CustomMethod.GetFocus();
        }

        private void btnXQGX_Click(object sender, EventArgs e)
        {
            CustomMethod.GetFocus();
            CustomMethod.SendCommand("XZGX");
        }

        private void btnTJCD_Click(object sender, EventArgs e)
        {

        }

        private void btnZDDX_Click(object sender, EventArgs e)
        {

        }
    }

}
